const Components = require('unplugin-vue-components/webpack')
const { ElementPlusResolver } = require('unplugin-vue-components/resolvers')

module.exports = {
  configureWebpack: {
    module: {
      unknownContextCritical: false
    },
    plugins: [
      Components({
        resolvers: [ElementPlusResolver()]
      })
    ]
  },
  devServer: {
    public: '0.0.0.0:8080',
    disableHostCheck: true
  },
  pluginOptions: {
    windicss: {}
  }
}
